#ifndef  _APP_DELEGATE_H_
#define  _APP_DELEGATE_H_

#include "cocos2d.h"

class CallbackListener
{
public:
    virtual void shareViaFacebookCallback() = 0;
    virtual void rateThisApplicationCallback() = 0;
};


class  AppDelegate : private cocos2d::CCApplication
{
public:
    AppDelegate();
    virtual ~AppDelegate();

    virtual bool applicationDidFinishLaunching();

    virtual void applicationDidEnterBackground();

    virtual void applicationWillEnterForeground();

    void setListener(CallbackListener *listener);

    void shareViaFacebook();
    void rateThisApp();

private:
    CallbackListener *mListener;
};

#endif

